package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;

import java.util.HashMap;
import java.util.List;

public interface RoleDao_Lizekai {
    public void add(Role role);

    public Page<Role> findPage(String queryString);

    public List<Permission> findAll();

    public void setPermissionIdAndRoleId(HashMap<String, Integer> map);

    public Role findById(int id);

    public void EditRole(Role role);

    public void deleteAssociation(Integer roleId);

    public List<Menu> findMenuAll();

    public void setMenuIdAndRoleId(HashMap<String, Integer> map);

    public List<Integer> findPermissionIdByRoleId(int id);

    public List<Integer> findMenuIdByRoleId(int id);

    public void deleteMenuAssociation(Integer roleId);

    public int findRoleIdAndUserId(int id);

    public int findRoleAndPermission(int id);

    public int findRoleAndMenu(int id);

    public void deleteById(int id);
}
